﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCSendEmail.ascx.cs" Inherits="RedHouse.AdminControl.UserControls.Customer.UCSendEmail" %>
<form method="post" action="#">
<!-- Form -->
<!-- Fieldset -->
<script type="text/javascript">
    $(document).ready(function () {
        $("#txtBody").cleditor({ width: 700, height: 400, useCSS: true });
    });
    function OnSubmit() {
        var body = $("#txtBody").val();
        $("#ctl00_MainContent_ucSendEmail_hdfBody").val(body);
    }
</script>
<asp:Panel ID="ErrorPanel" runat="server">
    <div class="err">
        <div class="err_icon">
            <!-- -->
        </div>
        <a href="#" class="close" title="Close this notification">x</a>
        <div class="desc">
            <span>Error!</span>
            <p>
                <%=this.Message %></p>
        </div>
    </div>
</asp:Panel>
<asp:Panel ID="SuccessPanel" runat="server">
    <div class="succes">
        <div class="succes_icon">
            <!-- -->
        </div>
        <a href="#" class="close" title="Close this notification">x</a>
        <div class="desc">
            <span>Success!</span>
            <p>
                <%=this.Message %></p>
        </div>
    </div>
</asp:Panel>
<div class="clear">
    <!-- -->
</div>
<fieldset>
    <legend>Create News</legend>
    <div class="input_field">
        <label for="lf">
            Subject
        </label>
        <asp:TextBox CssClass="bigfield" ID="txtSubject" runat="server" />
    </div>
    <div class="input_field">
        <label>
            Body:</label>
    </div>
    <div class="input_field">
        <textarea cols="50" rows="10" id="txtBody" ></textarea>
        <asp:HiddenField ID="hdfBody" Value="" runat="server" />
    </div>
    <div class="input_field no_margin_bottom">
        <asp:Button class="submit" ID="btnSend" OnClientClick="javascript:OnSubmit()" runat="server" Text="Send" />
        <input class="submit" type="reset" value="Reset" onclick="this.form.reset();" />
    </div>
</fieldset>
<!-- End of fieldset -->
</form>
<!-- /Form -->
